package com.tianyi.sfzy1.controller;

import com.tianyi.sfzy1.service.ConsultantlevelService;
import com.tianyi.sfzy1.util.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/level")
public class ConsultantlevelController {
    @Autowired
    private ConsultantlevelService consultantlevelService;
    @RequestMapping("/findAllLevel")
    public R findAll(){
        return R.ok(consultantlevelService.getAll());
    }
}
